<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    var chineseScore = 80
    var matchScore = 99

    // 1.逻辑与: && 并且
    if (chineseScore > 90 && matchScore > 90) {
      console.log("去游乐园玩")
    }

    // 2.逻辑或: || 或者
    if (chineseScore > 90 || matchScore > 90) {
      console.log("去游乐园玩")
    }
    // 3. 逻辑非: ! 取反
    var isLogin = false
    if (!isLogin) {
      console.log("跳转到登录页面")
    } else {
      console.log("正常访问页面")
    }
  </script>
</body>

</html>